class CreateAlbums < ActiveRecord::Migration
  def self.up
    create_table :albums do |t|
      t.column(:name, :string)
      t.column(:description,:text)
      t.column(:is_public,:boolean)
      t.column(:show_on_index,:boolean)
      t.column(:photos_count, :integer, :default=>0)
      t.column(:created_at,:datetime)
    end
  end

  def self.down
    drop_table :albums
  end
end
